<template>
  <header class="head">
          <slot name="left"></slot>
          <span class="header-title">
              <span class="header-title-text">{{title}}</span>
          </span>
          <slot name="right"></slot>
      </header>
</template>

<script>
export default {
    props:{
        title:String
    }
}
</script>

<style lang="less" scoped>
.head{
    width: 100%;
    height: 50px;
    position: fixed;
    background-color:lightseagreen ;
    display: flex;
    justify-content: space-around;
    align-items: center;
    z-index: 300;
}

</style>